package com.yanfan.modbus.frame;


import com.yanfan.modbus.code.FunctionCode;
import com.yanfan.modbus.exception.ModbusTransportException;
import com.yanfan.modbus.frame.abs.ReadBinaryRequest;

/**
 * @author oliver foo
 * @description
 * @date 2022/3/15 17:16
 */
public class ReadCoilsRequest extends ReadBinaryRequest {

    public ReadCoilsRequest(int slaveId, int startOffset, int numberOfBits) throws ModbusTransportException {
        super(slaveId, startOffset, numberOfBits);
    }

    public ReadCoilsRequest(int slaveId) throws ModbusTransportException {
        super(slaveId);
    }


    @Override
    public byte getFunctionCode() {
        return FunctionCode.READ_COILS;
    }
}
